<template>
<div class="col-box">
  <div class="left">
    <img :src="info.book_cover_small" alt="">
  </div>
  <div class="right">
    <span class="font-bold flex justify-between">{{info.bookName}}
    <van-rate v-model="info.popular" readonly color="#ffd21e" size="16"/></span>
    <div class="remark txtover2">
      {{info.remark}}
    </div>
  </div>
</div>
</template>


<script lang="ts" setup>
import {ColBoxDetail} from '../modal/col-box-detail'
defineProps({
  info: {
    type:Object,
    default:()=>{return {}}
  }
})

</script>

<style scoped lang="scss">
.col-box{
  padding: 10px;
  display: flex;
  align-items: center;
  .left{
    width: 70px;
    height: 92px;
    background-color: rgba(59, 131, 255, 1);
    box-shadow: 0 2px 4px rgba(24, 65, 186, 0.35);
    border-radius: 2.4px;
    img{
      width: 100%;
      height: 100%;
    }
  }
  .right{
    //height: 64px;
    padding: 10px;
    width: calc(100% - 50px);
    background-color: rgba(250, 250, 250, 1);
    border-radius: 8px;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    font-size: 12px;
    .remark{
      padding-top: 10px;
    }
  }
}

</style>
